package com.ojoin.trade.common.web.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common.web.dao.TbBillDateInfoDao;
import com.ojoin.trade.common.web.dao.TbWeekEndDao;
import com.ojoin.trade.common.web.domain.TbBillDateInfo;
import com.ojoin.trade.common.web.domain.TbWeekend;
import com.ojoin.trade.common.web.service.TbBillDateInfoService;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 16-4-15
 * Time: 下午2:40
 * To change this template use File | Settings | File Templates.
 */
@Service
public class TbBillDateInfoServiceImpl extends BaseServiceImpl<TbBillDateInfo> implements TbBillDateInfoService {

    @Autowired
    private TbBillDateInfoDao dao;
    @Override
    protected BaseDao<TbBillDateInfo> getBaseDao() {
        return dao;
    }

    @Override
    public TbBillDateInfo queryBillDateByLoanDateAndType(String loandate, String busitype) throws BusinessException {
        return ((TbBillDateInfoDao)dao).queryBillDateByLoanDateAndType(loandate, busitype);
    }
}
